import request from '@/utils/request'

export function listQuarantineRecord(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/record/list',
    method: 'post',
    data
  })
}


export function getQuarantineRecord(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/record/get',
    method: 'post',
    data
  })
}

export function postQuarantineRecord(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/record/post',
    method: 'post',
    data
  })
}

export function patchQuarantineRecord(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/record/patch',
    method: 'post',
    data
  })
}

export function deleteQuarantineRecord(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/record/delete',
    method: 'post',
    data: {
      id: data
    }
  })
}

export function listQuarantineOption(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/option/list',
    method: 'post',
    data
  })
}


export function getQuarantineOption(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/option/get',
    method: 'post',
    data
  })
}

export function postQuarantineOption(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/option/post',
    method: 'post',
    data
  })
}

export function patchQuarantineOption(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/option/patch',
    method: 'post',
    data
  })
}

export function deleteQuarantineOption(data) {
  return request({
    baseURL: 'http://127.0.0.1:8199/api',
    url: '/quarantine/option/delete',
    method: 'post',
    data: {
      id: data
    }
  })
}
